package com.heisenhub.system;

import com.heisenhub.api.logsapi.service.LogService;
import com.heisenhub.common.db.annotation.EnableXmMybatisHandler;
import com.heisenhub.common.feignClient.annotation.EnableXMFeignClientHandler;
import com.heisenhub.common.oauth.annotation.EnableXMOauthHandler;
import com.heisenhub.common.redis.annotation.EnableXMRedisHandler;
import com.heisnenhub.common.module.annotation.EnableXmModuleHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @author sen
 * @description
 * @date 2024/3/19 14:31
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableXMRedisHandler
@EnableXMOauthHandler  // 开启认证
@EnableXmMybatisHandler  // 开启mysql功能
@EnableXmModuleHandler  // 开启基础moudel bean
@EnableXMFeignClientHandler(LogService.LOG_API_MOILD_URL)
//@ComponentScans(value = {@ComponentScan({"com.heisenhub.api.logsapi"})}) // 启动时去扫描 xx路径下的组件
public class HubSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(HubSystemApplication.class, args);
    }
}


